<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">




<ui:composition template="template.xhtml">

	<ui:define name="content">
	    <h:form id="addTeamForm">
	    	<p:fieldset styleClass="fieldset" legend="Add new team - Form">
	    		<p:focus />
	    		<p:panelGrid id="addTeamGrid" styleClass="panelgrid" cellspacing="8" columns="2">
	    			<h:outputText value="Team name"></h:outputText>
	    			<p:inputText value="#{teamManager.selected.name}"></p:inputText>
	    			
	    			<h:outputText value="Team location"></h:outputText>
	    			<p:inputText value="#{teamManager.selected.teamLocation}"></p:inputText>
	    			
	    			<h:outputText value=" "></h:outputText>
	    			<h:outputText value="  "></h:outputText>
	    			
	    			<p:commandButton id="addTeamButton" value="Submit" action="#{teamManager.save()}"></p:commandButton>
	    			<h:outputText style="color:red" value="  " />
	    		</p:panelGrid>
	    	
	    	
	    		
	    	</p:fieldset>
	    
	    
	    </h:form>
	</ui:define>

</ui:composition>
</html>